import request from '@/utils/request'
// 新增线下课
export function addOffline(data) {
	return request({
		url: '/admin/resource/course/offline',
		method: 'post',
		data,
		showLoading: true
	})
}
// 线下课分页
export function pagingOffline(data) {
	return request({
		url: '/admin/resource/course/offline/paging',
		method: 'post',
		data,
		showLoading: true
	})
}

// 线下课详情
export function getOfflineDetail(id) {
	return request({
		url: '/admin/resource/course/offline/' + id,
		method: 'get',
		showLoading: true
	})
}
// 修改线下课
export function editOffline(data) {
	return request({
		url: '/admin/resource/course/offline',
		method: 'put',
		data,
		showLoading: true
	})
}
// 批量删除线下课
export function delOffline(idList) {
	return request({
		url: '/admin/resource/course/offline/' + idList,
		method: 'delete',
		showLoading: true
	})
}
// 线下课上下架
export function publishOffline(data) {
	return request({
		url: '/admin/resource/course/offline/publish',
		method: 'put',
		data,
		showLoading: true
	})
}
// 线下课导入
export function importOffline(data) {
	return request({
		url: '/admin/resource/course/offline/import',
		method: 'post',
		data,
		showLoading: true
	})
}
// 线下课导出
export function exportOffline(data) {
	return request({
		url: '/admin/resource/course/offline/export',
		method: 'post',
		data,
		showLoading: true
	})
}
